package com.cesgroup.zw.spring.boot.library.echarts.lineAndBar.complex;

import com.cesgroup.zw.spring.boot.echarts.component.series.Bar;
import com.cesgroup.zw.spring.boot.echarts.model.style.ItemStyle;

/**
 * @author ytj
 * @date 2019/7/4 13:13
 */
@SuppressWarnings("serial")
public class ComplexBarSeries extends Bar {
    public ComplexBarSeries(ComplexLineAndBarParam param){
        this.setName(param.getBarName());
        this.setType("bar");
        this.setBarWidth(15);
        this.setItemStyle(new ItemStyle(){{
            this.setColor("#01FCE3");
        }});
        this.setData((Object[]) param.getDataset().get("value"));
    }

}
